using System.Collections.Generic;

namespace DapperExtensionsNew
{
    public class PagedEntity<T>
    {
        public int TotalItems
        {
            get;
            set;
        }

        public ICollection<T> Items
        {
            get;
            set;
        }

        public PagedEntity()
        {
            Items = new List<T>();
        }

        public PagedEntity(int totalItems, ICollection<T> items)
        {
            TotalItems = totalItems;
            Items = items;
        }
    }
}
